package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

/**
 * @author: jie.zhao
 * @create: 2021/01/31 16:52
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
